13/04/2014
This board and remote combo work well with Arduino's. Easy to program. Press 1 of the 4 buttons and a digitial port goes high. This will work well for multiple input and robotic projects. I couldn't find a sample program for this board, so I wrote one. It's simple, but works well to test the board and remote. One thing to note, the remote control buttons do not match the picture of the product. Over all a nicely designed board for projects. //4 Channel Wireless RF Remote Control Transmitter/Receiver Module //Basic test program - no interrupt or debounce of the pressed buttons //Note that this is for the pushbutton configuration // // // Picture on BangGood is backwards // // // If you have this remote control configuration use the following // D0=3 // D1=4 // D2=5 // D3=6 int VT = 2; int D0 = 5; int D1 = 3; int D2 = 6; int D3 = 4; int ledPin = 13; int PB = 0; int out0 = 0; int out1 = 0; int out2 = 0; int out3 = 0; void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); pinMode(D0, INPUT); pinMode(D1, INPUT); pinMode(D2, INPUT); pinMode(D3, INPUT); pinMode(VT, INPUT); } void loop() { PB = 0; out0 = 0; out1 = 0; out2 = 0; out3 = 0; int PB = digitalRead(VT); int out0 = digitalRead(D0); int out1 = digitalRead(D1); int out2 = digitalRead(D2); int out3 = digitalRead(D3); if (PB == HIGH) { digitalWrite(ledPin, HIGH); delay (50); digitalWrite(ledPin, LOW); Serial.println(PB); Serial.println(out0); Serial.println(out1); Serial.println(out2); Serial.println(out3); Serial.println("**************************"); } }
This board and remote combo work well with Arduino's. Easy to program. Press 1 of the 4 buttons and a digitial port goes high. This will work well for multiple input and robotic projects. I couldn't find a sample program for this board, so I wrote one. It's simple, but works well to test the board and remote. One thing to note, the remote control buttons do not match the picture of the product. Over all a nicely designed board for projects. //4 Channel Wireless RF Remote Control Transmitter/Receiver Module //Basic test program - no interrupt or debounce of the pressed buttons //Note that this is for the pushbutton configuration // // // Picture on BangGood is backwards // // // If you have this remote control configuration use the following // D0=3 // D1=4 // D2=5 // D3=6 int VT = 2; int D0 = 5; int D1 = 3; int D2 = 6; int D3 = 4; int ledPin = 13; int PB = 0; int out0 = 0; int out1 = 0; int out2 = 0; int out3 = 0; void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); pinMode(D0, INPUT); pinMode(D1, INPUT); pinMode(D2, INPUT); pinMode(D3, INPUT); pinMode(VT, INPUT); } void loop() { PB = 0; out0 = 0; out1 = 0; out2 = 0; out3 = 0; int PB = digitalRead(VT); int out0 = digitalRead(D0); int out1 = digitalRead(D1); int out2 = digitalRead(D2); int out3 = digitalRead(D3); if (PB == HIGH) { digitalWrite(ledPin, HIGH); delay (50); digitalWrite(ledPin, LOW); Serial.println(PB); Serial.println(out0); Serial.println(out1); Serial.println(out2); Serial.println(out3); Serial.println("**************************"); } }
This board and remote combo work well with Arduino's. Easy to program. Press 1 of the 4 buttons and a digitial port goes high. This will work well for multiple input and robotic projects. I couldn't find a sample program for this board, so I wrote one. It's simple, but works well to test the board and remote. One thing to note, the remote control buttons do not match the picture of the product. Over all a nicely designed board for projects. //4 Channel Wireless RF Remote Control Transmitter/Receiver Module //Basic test program - no interrupt or debounce of the pressed buttons //Note that this is for the pushbutton configuration // // // Picture on BangGood is backwards // // // If you have this remote control configuration use the following // D0=3 // D1=4 // D2=5 // D3=6 int VT = 2; int D0 = 5; int D1 = 3; int D2 = 6; int D3 = 4; int ledPin = 13; int PB = 0; int out0 = 0; int out1 = 0; int out2 = 0; int out3 = 0; void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); pinMode(D0, INPUT); pinMode(D1, INPUT); pinMode(D2, INPUT); pinMode(D3, INPUT); pinMode(VT, INPUT); } void loop() { PB = 0; out0 = 0; out1 = 0; out2 = 0; out3 = 0; int PB = digitalRead(VT); int out0 = digitalRead(D0); int out1 = digitalRead(D1); int out2 = digitalRead(D2); int out3 = digitalRead(D3); if (PB == HIGH) { digitalWrite(ledPin, HIGH); delay (50); digitalWrite(ledPin, LOW); Serial.println(PB); Serial.println(out0); Serial.println(out1); Serial.println(out2); Serial.println(out3); Serial.println("**************************"); } }